// get 请求打印参数
// http://localhost:3000/?user=jspang&age=18  例如仿问
const Koa=require('koa');
const path=require('path');
const static=require('koa-static')
const app=new Koa();

const staticPath='./static';
app.use(static(path.join(__dirname,staticPath)));

app.use(async(ctx)=>{
    ctx.body="hello world";
});

app.listen(3000,()=>{
    console.log("starting at port 3000")
})
//最后直接访问图片的地址是
http://localhost:3000/800.jpg